-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [#206]草稿类型支持枚举如果查询返回的是SQLColumn
- Loading branch information
Showing
35 changed files
with
323 additions
and
435 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
83 changes: 83 additions & 0 deletions
83
...main/java/com/easy/query/core/basic/jdbc/executor/impl/def/BasicResultColumnMetadata.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
package com.easy.query.core.basic.jdbc.executor.impl.def; | ||
|
||
import com.easy.query.core.basic.extension.conversion.ValueConverter; | ||
import com.easy.query.core.basic.extension.encryption.EncryptionStrategy; | ||
import com.easy.query.core.basic.jdbc.executor.ResultColumnMetadata; | ||
import com.easy.query.core.basic.jdbc.executor.internal.props.JdbcProperty; | ||
import com.easy.query.core.basic.jdbc.types.handler.JdbcTypeHandler; | ||
import com.easy.query.core.metadata.ColumnMetadata; | ||
|
||
/** | ||
* create time 2023/6/30 22:03 | ||
* 文件说明 | ||
* | ||
* @author xuejiaming | ||
*/ | ||
public class BasicResultColumnMetadata implements ResultColumnMetadata { | ||
private final Class<?> propType; | ||
private final JdbcTypeHandler jdbcTypeHandler; | ||
private final JdbcProperty jdbcProperty; | ||
|
||
public BasicResultColumnMetadata(Class<?> propType,JdbcTypeHandler jdbcTypeHandler, JdbcProperty jdbcProperty){ | ||
this.propType = propType; | ||
this.jdbcTypeHandler = jdbcTypeHandler; | ||
|
||
this.jdbcProperty =jdbcProperty; | ||
} | ||
|
||
@Override | ||
public Class<?> getPropertyType() { | ||
return propType; | ||
} | ||
|
||
@Override | ||
public ColumnMetadata getColumnMetadata() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
@Override | ||
public Class<?> getEntityClass() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
@Override | ||
public JdbcProperty getJdbcProperty() { | ||
return jdbcProperty; | ||
} | ||
|
||
@Override | ||
public String getPropertyName() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
@Override | ||
public JdbcTypeHandler getJdbcTypeHandler() { | ||
return jdbcTypeHandler; | ||
} | ||
|
||
@Override | ||
public boolean isEncryption() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
@Override | ||
public EncryptionStrategy getEncryptionStrategy() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
@Override | ||
public ValueConverter<?, ?> getValueConverter() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
@Override | ||
public void setValue(Object bean, Object value) { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
|
||
@Override | ||
public Object getValue(Object bean) { | ||
throw new UnsupportedOperationException(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
.../main/java/com/easy/query/core/basic/jdbc/executor/impl/def/TypeResultColumnMetadata.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
package com.easy.query.core.basic.jdbc.executor.impl.def; | ||
|
||
import com.easy.query.core.basic.extension.conversion.ValueConverter; | ||
import com.easy.query.core.basic.extension.encryption.EncryptionStrategy; | ||
import com.easy.query.core.basic.jdbc.executor.ResultColumnMetadata; | ||
import com.easy.query.core.basic.jdbc.executor.internal.props.JdbcProperty; | ||
import com.easy.query.core.basic.jdbc.types.handler.JdbcTypeHandler; | ||
import com.easy.query.core.metadata.ColumnMetadata; | ||
|
||
/** | ||
* create time 2024/5/22 23:34 | ||
* 文件说明 | ||
* | ||
* @author xuejiaming | ||
*/ | ||
public class TypeResultColumnMetadata implements ResultColumnMetadata { | ||
private final Class<?> propertyType; | ||
|
||
public TypeResultColumnMetadata(Class<?> propertyType){ | ||
|
||
this.propertyType = propertyType; | ||
} | ||
@Override | ||
public Class<?> getPropertyType() { | ||
return propertyType; | ||
} | ||
|
||
@Override | ||
public ColumnMetadata getColumnMetadata() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
@Override | ||
public Class<?> getEntityClass() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
@Override | ||
public JdbcProperty getJdbcProperty() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
@Override | ||
public String getPropertyName() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
@Override | ||
public JdbcTypeHandler getJdbcTypeHandler() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
@Override | ||
public boolean isEncryption() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
@Override | ||
public EncryptionStrategy getEncryptionStrategy() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
@Override | ||
public ValueConverter<?, ?> getValueConverter() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
@Override | ||
public void setValue(Object bean, Object value) { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
@Override | ||
public Object getValue(Object bean) { | ||
throw new UnsupportedOperationException(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.